package com.example.eventdemo;

import ohos.event.commonevent.CommonEventData;
import ohos.event.commonevent.CommonEventSubscribeInfo;
import ohos.event.commonevent.CommonEventSubscriber;
import ohos.hiviewdfx.HiLog;
import ohos.hiviewdfx.HiLogLabel;


public class CommonSubscribe extends CommonEventSubscriber {
    static final HiLogLabel LABEL = new HiLogLabel(HiLog.LOG_APP, 0x0024, "MY_TAG");
    public CommonSubscribe(CommonEventSubscribeInfo subscribeInfo) {
        super(subscribeInfo);
    }

    @Override
    public void onReceiveEvent(CommonEventData commonEventData) {
        HiLog.debug(LABEL, "接收到屏幕锁屏");
    }
}
